<!DOCTYPE html>
<html style="height:100%">
<head>
    <title></title>
    <% include ../../layouts/import.ejs %>
</head>
<body style="height:100%">
<div style="position: relative" class="index height">
    <% include ../../layouts/header.ejs %>
    <form id="searchForm" role="form" action="/project/search" method="post">
        <div class="container">
            <div class="row">
                <div style="margin-top:20px" class="panel panel-default">
                    <div class="panel-body">
                        <div style="margin:0" class="row form-group form-group-sm">
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <span class="input-group-addon">项目名称</span>
                                    <div class="input-group col-sm-12">
                                        <input name="projectName" placeholder="请输入项目名称" class="form-control"/>
                                    </div>
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <span class="input-group-addon">项目代码</span>
                                    <div class="input-group col-sm-12">
                                        <input name="projectCode" placeholder="请输入项目代码" class="form-control"/>
                                    </div>
                                </div>
                            </div>
                            <div class="col-sm-2">
                                <button type="submit" id="qryBtn" class="person-sreach btn btn-primary btn-sm">查询
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="panel panel-default">
                <div class="person-panel-heading">
                    <div class="pull-left person-new">
                        <span class="glyphicon glyphicon-th-list"></span>
                        <span>项目管理</span>
                    </div>
                    <div class="pull-right">
                        <a type="button" href="/project/add" data-target="#myModal"><span
                                    class="glyphicon glyphicon-plus person-add"></span></a>
                    </div>
                    <div class="clearfix"></div>
                </div>
                <table class="table table-bordered table-hover table-striped table-condensed person-refence">
                    <thead>
                    <tr>
                        <th width="5%" class="align-center">编号</th>
                        <th width="20%" class="align-center">项目名称</th>
                        <th width="10%" class="align-center">项目CODE</th>
                        <th width="10%" class="align-center">svn地址</th>
                        <th width="15%" class="align-center">负责人</th>
                        <th width="15%" class="align-center">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <% for (var i = 0;i < dataList.length;i++){ %>
                        <tr>
                            <td class="align-center"><%= dataList[i].id %></td>
                            <td class="align-center"><a
                                        href="/project/detail/<%= dataList[i].id %>"><%= dataList[i].project_name %></a>
                            </td>
                            <td class="align-center"><%= dataList[i].project_code %></td>
                            <td class="align-center"><%= dataList[i].project_svn_adress %></td>
                            <td class="align-center"><%= dataList[i].project_leader_name %></td>
                            <td class="align-center">
                                <a href="/project/edit/<%= dataList[i].id %>"  data-id="<%= dataList[i].id %>" class="btn btn-default btn-xs btn-update person-edit">修改</a>
                                <a href="/project/delete/<%= dataList[i].id %>" style="margin-left:10px" class="btn btn-default btn-xs btn-del person-delete">删除</a>
                            </td>
                        </tr>
                    <% } %>

                    </tbody>
                </table>
            </div>
        </div>
    </form>
    <% include ../../layouts/footer.ejs %>


</div>
</body>

<script>
    $(function () {
        $('#project-management').addClass('select-active')
    })
</script>
</html>